package com.itheima.client;

import com.itheima.entity.Result;
import com.itheima.pojo.Notice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("tensquare-notice")
public interface NoticeClient {
    @PostMapping("/notice")
    public Result add(@RequestBody Notice notic);

}
